home *** CD-ROM | disk | FTP | other *** search
- #include "stdafx.h"
- #include "lemfc.h"
- #include "lemfc_1.h"
- #include "lemfc_1d.h"
- #include "lemfc_1v.h"
-
- #define THE_VIEW ((CLemfc_1View*)m_viewList.GetHead())
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CLemfc_1Doc
-
- IMPLEMENT_DYNCREATE(CLemfc_1Doc, CDocument)
-
- BEGIN_MESSAGE_MAP(CLemfc_1Doc, CDocument)
- //{{AFX_MSG_MAP(CLemfc_1Doc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CLemfc_1Doc construction/destruction
-
- CLemfc_1Doc::CLemfc_1Doc()
- {
- // TODO: add one-time construction code here
-
- }
-
- CLemfc_1Doc::~CLemfc_1Doc()
- {
- }
-
- BOOL CLemfc_1Doc::OnNewDocument()
- {
- if (!CDocument::OnNewDocument())
- return FALSE;
-
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
- THE_VIEW->DeleteContents();
-
- return TRUE;
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLemfc_1Doc serialization
-
- void CLemfc_1Doc::Serialize(CArchive& ar)
- {
- THE_VIEW->SerializeRaw(ar);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CLemfc_1Doc diagnostics
-
- #ifdef _DEBUG
- void CLemfc_1Doc::AssertValid() const
- {
- CDocument::AssertValid();
- }
-
- void CLemfc_1Doc::Dump(CDumpContext& dc) const
- {
- CDocument::Dump(dc);
- }
- #endif //_DEBUG
-
- /////////////////////////////////////////////////////////////////////////////
- // CLemfc_1Doc commands
-